package org.chen.model.service;

import java.util.List;
import java.util.Map;

public interface BaseService<T> {

	public Integer add(T t);

	public Integer update(T t);

	public Integer delete(Integer id);

	public T queryById(Integer id);

	public List<T> query();

	public Long queryRowCount();

	List<T> queryByPage(Map<String, Object> pageMap);

}
